package com.xmut.service;

import com.sirdc.modules.core.dao.BaseDao;
import com.sirdc.modules.sys.base.LongPKService;
import com.xmut.dao.TopicDao;
import com.xmut.entity.Topic;
import com.xmut.filter.TopicFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class TopicService extends LongPKService<Topic> {

    @Autowired
    private TopicDao dao;

    @Override
    protected BaseDao<Topic, Long> getDao() {
        return dao;
    }

    public List<Topic> query(TopicFilter filter) {
        return dao.query(filter);
    }

    public int queryNumber() {
        return dao.queryNumber();
    }
}
